<?php
	header('Content-Type:application/json');  //此声明非常重要
	include('connect.php');
		$sql = "SELECT * FROM openid ";
   $result = mysqli_fetch_all(mysqli_query($db,$sql),MYSQLI_ASSOC);
    $json['num'] = count($result);    
    $json['info'] = $result;    
        echo (json_encode($json)) ;
    
?>